package cn.xuewenbao.ucenter.service;

import cn.xuewenbao.ucenter.entity.Vip;
import cn.xuewenbao.ucenter.entity.VipType;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 会员 服务类
 * </p>
 *
 * @author liubf
 * @since 2021-07-07
 */
public interface VipService extends IService<Vip> {

    /**
     *
     * @param userId
     * @return
     */
    Result<Map<String, Object>> getVipInfo(String userId);

    Result<VipType> getVipTypeInfo(String vipTypeId);

    Result<List<VipType>> getAllVipType();

    String getOrderDescription(String contentId, String userId);

    String addVip(String memberId, String contentType);

    boolean isVip(String userId);
}
